Integrand size = 25, antiderivative size = 83 \[ \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\frac {(a-b) \arctan \left (\frac {\sqrt {b} \cos (e+f x)}{\sqrt {a+b-b \cos ^2(e+f x)}}\right )}{2 b^{3/2} f}-\frac {\cos (e+f x) \sqrt {a+b-b \cos ^2(e+f x)}}{2 b f} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3265, 396, 223, 209} \[ \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\frac {(a-b) \arctan \left (\frac {\sqrt {b} \cos (e+f x)}{\sqrt {a-b \cos ^2(e+f x)+b}}\right )}{2 b^{3/2} f}-\frac {\cos (e+f x) \sqrt {a-b \cos ^2(e+f x)+b}}{2 b f} \]
[In]
[Out]
Rule 209
Rule 223
Rule 396
Rule 3265
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {1-x^2}{\sqrt {a+b-b x^2}} \, dx,x,\cos (e+f x)\right )}{f} \\ & = -\frac {\cos (e+f x) \sqrt {a+b-b \cos ^2(e+f x)}}{2 b f}+\frac {(a-b) \text {Subst}\left (\int \frac {1}{\sqrt {a+b-b x^2}} \, dx,x,\cos (e+f x)\right )}{2 b f} \\ & = -\frac {\cos (e+f x) \sqrt {a+b-b \cos ^2(e+f x)}}{2 b f}+\frac {(a-b) \text {Subst}\left (\int \frac {1}{1+b x^2} \, dx,x,\frac {\cos (e+f x)}{\sqrt {a+b-b \cos ^2(e+f x)}}\right )}{2 b f} \\ & = \frac {(a-b) \arctan \left (\frac {\sqrt {b} \cos (e+f x)}{\sqrt {a+b-b \cos ^2(e+f x)}}\right )}{2 b^{3/2} f}-\frac {\cos (e+f x) \sqrt {a+b-b \cos ^2(e+f x)}}{2 b f} \\ \end{align*}
Time = 0.37 (sec) , antiderivative size = 105, normalized size of antiderivative = 1.27 \[ \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=-\frac {\cos (e+f x) \sqrt {2 a+b-b \cos (2 (e+f x))}}{2 \sqrt {2} b f}+\frac {(a-b) \log \left (\sqrt {2} \sqrt {-b} \cos (e+f x)+\sqrt {2 a+b-b \cos (2 (e+f x))}\right )}{2 \sqrt {-b} b f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(147\) vs. \(2(71)=142\).
Time = 0.91 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.78
method | result | size |
default | \(\frac {\sqrt {-\left (-b \left (\sin ^{2}\left (f x +e \right )\right )-a \right ) \left (\cos ^{2}\left (f x +e \right )\right )}\, \left (-\frac {\sqrt {-\left (-b \left (\sin ^{2}\left (f x +e \right )\right )-a \right ) \left (\cos ^{2}\left (f x +e \right )\right )}}{2 b}+\frac {\left (-a +b \right ) \arctan \left (\frac {\sqrt {b}\, \left (\sin ^{2}\left (f x +e \right )-\frac {-a +b}{2 b}\right )}{\sqrt {-\left (-b \left (\sin ^{2}\left (f x +e \right )\right )-a \right ) \left (\cos ^{2}\left (f x +e \right )\right )}}\right )}{4 b^{\frac {3}{2}}}\right )}{\cos \left (f x +e \right ) \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}\, f}\) | \(148\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 163 vs. \(2 (71) = 142\).
Time = 0.36 (sec) , antiderivative size = 438, normalized size of antiderivative = 5.28 \[ \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\left [-\frac {8 \, \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} b \cos \left (f x + e\right ) - {\left (a - b\right )} \sqrt {-b} \log \left (128 \, b^{4} \cos \left (f x + e\right )^{8} - 256 \, {\left (a b^{3} + b^{4}\right )} \cos \left (f x + e\right )^{6} + 160 \, {\left (a^{2} b^{2} + 2 \, a b^{3} + b^{4}\right )} \cos \left (f x + e\right )^{4} + a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4} - 32 \, {\left (a^{3} b + 3 \, a^{2} b^{2} + 3 \, a b^{3} + b^{4}\right )} \cos \left (f x + e\right )^{2} + 8 \, {\left (16 \, b^{3} \cos \left (f x + e\right )^{7} - 24 \, {\left (a b^{2} + b^{3}\right )} \cos \left (f x + e\right )^{5} + 10 \, {\left (a^{2} b + 2 \, a b^{2} + b^{3}\right )} \cos \left (f x + e\right )^{3} - {\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} \cos \left (f x + e\right )\right )} \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {-b}\right )}{16 \, b^{2} f}, -\frac {{\left (a - b\right )} \sqrt {b} \arctan \left (\frac {{\left (8 \, b^{2} \cos \left (f x + e\right )^{4} - 8 \, {\left (a b + b^{2}\right )} \cos \left (f x + e\right )^{2} + a^{2} + 2 \, a b + b^{2}\right )} \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {b}}{4 \, {\left (2 \, b^{3} \cos \left (f x + e\right )^{5} - 3 \, {\left (a b^{2} + b^{3}\right )} \cos \left (f x + e\right )^{3} + {\left (a^{2} b + 2 \, a b^{2} + b^{3}\right )} \cos \left (f x + e\right )\right )}}\right ) + 4 \, \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} b \cos \left (f x + e\right )}{8 \, b^{2} f}\right ] \]
[In]
[Out]
Timed out. \[ \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.40 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.90 \[ \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\frac {\frac {a \arcsin \left (\frac {b \cos \left (f x + e\right )}{\sqrt {{\left (a + b\right )} b}}\right )}{b^{\frac {3}{2}}} - \frac {\arcsin \left (\frac {b \cos \left (f x + e\right )}{\sqrt {{\left (a + b\right )} b}}\right )}{\sqrt {b}} - \frac {\sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \cos \left (f x + e\right )}{b}}{2 \, f} \]
[In]
[Out]
\[ \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int { \frac {\sin \left (f x + e\right )^{3}}{\sqrt {b \sin \left (f x + e\right )^{2} + a}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int \frac {{\sin \left (e+f\,x\right )}^3}{\sqrt {b\,{\sin \left (e+f\,x\right )}^2+a}} \,d x \]
[In]
[Out]